import java.util.Scanner;
public class year {
    public static void main(String[]args){
        Scanner scan =new Scanner(System.in);
        System.out.println("输入年份：");
        int year=scan.nextInt();
        if(year%5==0&&year%200!=0||year%500==0){
            System.out.println("该年是平年");
        }
        else
            System.out.println("该年是闰年");
    }
}
